import request from '../../axios/request.js';
let service = request.service;
let formatterUrl = request.formatterUrl;
export default{
    queryMicrocirculation(bid) {
      return service({
        url: `/adscm/application/bodyCheckOther/selectByBid/${bid}`,
        method: 'get'
      })
    }, 
    queryPePlanData(hid,providerNo) {
      return service({
        url: `/adscm/application/treatmentOptions/selectByHidAndProviderNo/${hid}/${providerNo}`,
        method: 'get'
      })
    },
    queryLoopCountDataByTid(tid) {
      return service({
        url: `/adscm/application/treatmentOptionsDetailDetail/selectByTid/${tid}`,
        method: 'get'
      })
    },
    idImgUploadForMicrocirculation(bodyCheckId) {
      return formatterUrl({
        url: `/adscm/application/bodyCheckOther/uploadWxhVideo/${bodyCheckId}`
      })
    },
    insertMicrocirculation(data){
      /**新增*/
      return service({
        url: `/adscm/application/bodyCheckOther/insert`,
        method: 'post',
        data
      })
    }, 
    insertPePlan(data){
      /**新增*/
      return service({
        url: `/adscm/application/treatmentOptions/insert`,
        method: 'post',
        data
      })
    },
    insertLoopCountDataR(data){
      /**新增*/
      return service({
        url: `/adscm/application/treatmentOptionsDetailDetail/insert`,
        method: 'post',
        data
      })
    }, 
    updateLoopCountDataR(data){
      /**新增*/
      return service({
        url: `/adscm/application/treatmentOptionsDetailDetail/update`,
        method: 'post',
        data
      })
    },
}